import http from '@/axios';

/**
 * 医生工作台管理模块
 */
//获取医生当天挂号患者列表
export const getTodayPatientList = (form) => http.post('/doctor/getTodayPatientList', form);
// 
export const updatePatientStatus = (form) => http.post('/doctor/updatePatientStatus', form);

// 获取医生排班月视图-周视图-日视图数据
export const queryDoctorScheduleInstanceData = (form) => http.post('/doctor/queryDoctorScheduleInstanceData', form);

// 获取医生的所有预约列表
export const getDoctorReservationList = (form) => http.post('/doctor/getDoctorReservationList', form);

// 医生开始问诊更新患者状态
export const updatePatientVisitStatus = (form) => http.post('/doctor/updatePatientVisitStatus', form);

// 获取诊断记录详情
export const getDiagnosisRecordByVisitId = (form) => http.post('/doctor/getDiagnosisRecordByVisitId', form);
// 保存诊断记录（创建或更新）
export const saveDiagnosisRecord = (form) => http.post('/doctor/saveDiagnosisRecord', form);

/**
 * 医生工作台患者档案管理
 */
//加载患者档案分页数据
export const getPatientMasterPagerDataByDoctorSearch = (form) => http.post('/doctor/getPatientMasterPagerDataByDoctorSearch', form);

//根据患者档案id查询病历总览数据
export const getPatientMasterAndRecordListDataById = (form) => http.post('/doctor/getPatientMasterAndRecordListDataById', form);

/**
 * 医生工作台预约挂号管理
 */
// 获取诊断记录详情
export const getDiagnosisRecordDetailByVisitId = (form) => http.post('/doctor/getDiagnosisRecordDetailByVisitId', form);

// 获取检查项目列表数据
export const getCheckFeeItemList = (form) => http.get('/fee/getCheckFeeItemList');

/**
 * 医生工作台诊断记录管理
 */
// 获取诊断记录分页数据
export const getDiagnosisRecordPagerDataByDoctorSearch = (form) => http.post('/doctor/getDiagnosisRecordPagerDataBySearch', form);
// 根据诊断编号查询诊断记录详情
export const getDiagnosisRecordDetailByRecordNo = (form) => http.post('/doctor/getDiagnosisRecordDetailByRecordNo', form);
// 创建检查项目订单
export const createExamOrderByDoctor = (form) => http.post('/doctor/createExamOrderByDoctor', form);
// 加载检查项目
export const getExamOrderByVisitId = (form) => http.post('/doctor/getExamOrderByVisitId', form);
// 删除检查项目
export const deleteExamOrderItem = (form) => http.post('/doctor/deleteExamOrderItem', form);
